home *** CD-ROM | disk | FTP | other *** search
- /* Driver controller control block */
- struct ether {
- struct interface *iface;
- int port;
- };
-
- extern struct ether ether[];
- extern unsigned nether;
-
- #define ETHER_MAX 4
-
- #define ETHER_OPEN 0x88000
- #define ETHER_READ 0x88001
- #define ETHER_WRITE 0x88002
- #define ETHER_CLOSE 0x88003
- #define ETHER_RESET 0x88004
- #define ETHER_STATS 0x88005
-
- #define ETHER_ERR_OK 0
- #define ETHER_ERR_INVPORT 1
- #define ETHER_ERR_OPEN 2
- #define ETHER_ERR_CLOSED 3
- #define ETHER_ERR_NODRIVER 4
- #define ETHER_ERR_NOMEM 5
- #define ETHER_ERR_TOOBIG 6
- #define ETHER_ERR_TOOSMALL 7
-
- /* In ETHERNET */
- int ether_attach(int, char **);
-